]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Update keys from the current KeyboardController purpose
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 31 May 2025 11:26:09 +0000 (13:26 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 31 May 2025 12:31:43 +0000 (14:31 +0200)
This will make the keyboard widgetry have the expected features, given
a pre-existing content hint.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8377
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3733>

js/ui/keyboard.js

index fc21011d39cdd3c081ff4956e1f180f5a87d63c7..0ae00e167a5b9982ece08a85d59aa83f961a1724 100644 (file)
@@ -1660,7 +1660,8 @@ export const Keyboard = GObject.registerClass({
 
     _updateKeys() {
         const group = this._keyboardController.getCurrentGroup();
-        this._updateLayout(group, this._purpose);
+        const {purpose} = this._keyboardController;
+        this._updateLayout(group, purpose);
         this._setActiveLevel('default');
     }